package io.renren.modules.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.project.dao.PojectWorkitemDao;
import io.renren.modules.project.entity.PojectWorkitemEntity;
import io.renren.modules.project.service.PojectWorkitemService;



@Service("pojectWorkitemService")
public class PojectWorkitemServiceImpl implements PojectWorkitemService {
	@Autowired
	private PojectWorkitemDao pojectWorkitemDao;
	
	@Override
	public PojectWorkitemEntity queryObject(String id){
		return pojectWorkitemDao.queryObject(id);
	}
	
	@Override
	public List<PojectWorkitemEntity> queryList(Map<String, Object> map){
		return pojectWorkitemDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return pojectWorkitemDao.queryTotal(map);
	}
	
	@Override
	public void save(PojectWorkitemEntity pojectWorkitem){
		pojectWorkitemDao.save(pojectWorkitem);
	}
	
	@Override
	public void update(PojectWorkitemEntity pojectWorkitem){
		pojectWorkitemDao.update(pojectWorkitem);
	}
	
	@Override
	public void delete(String id){
		pojectWorkitemDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		pojectWorkitemDao.deleteBatch(ids);
	}

	@Override
	public int operation(PojectWorkitemEntity pojectWorkitemEntity) {
		return pojectWorkitemDao.operation(pojectWorkitemEntity);
	}

}
